<div class="nodeBreadcrumb"><?php echo $this->helper('XiggBreadCrumbForNode', $node, $CONFIG);?><?php _e('Vote');?></div>

<div class="node">
  <h1 class="nodeTitle"><?php _h($node->get('title'));?></h1>
  <div class="nodeBody">
    <p><?php echo nl2br(h($node->get('body')));?></p>
  </div>

  <div class="nodeVoteForm">
    <h4 class="voteFormCaption"><?php _e('Vote');?></h4>
<?php foreach ($vote_form->getFormValidationErrors() as $error):?>
    <div class="stop">
      <p><?php _h($error);?></p>
    </div>
<?php endforeach;?>
    <?php form_tag('post', Sabai_URL::get('/node/' . $node->getId() . '/vote'));?>
<?php foreach ($vote_form->getElementNames() as $name):?>
    <p>
      <?php $vote_form->printHTMLFor($name);?>
    </p>
<?php   foreach ($vote_form->getValidationErrorsFor($name) as $error):?>
    <div class="stop">
      <p><?php _h($error);?></p>
    </div>
<?php   endforeach;?>
<?php endforeach;?>
    <p>
      <input type="submit" value="<?php _e('Send');?>" class="button" />
    </p>
    <?php form_tag_end();?>
  </div>
</div>